package com.xg.service;

import com.xg.common.request.SeriesReq;
import com.xg.common.result.ApiResult;
import com.xg.common.util.PageUtil;
import com.xg.entity.UsedCar;
import com.xg.entity.UsedCarBrand;
import com.xg.entity.UsedCarSeries;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jdh
 * @since 2023-03-30
 */
public interface IUsedCarSeriesService extends IService<UsedCarSeries> {

    List<UsedCarSeries> queryUsedCarSeriesList();

    ApiResult<PageUtil<UsedCarSeries>> querySeriesList(SeriesReq seriesReq);

    ApiResult deleteSerices(List<Integer> ids);

    ApiResult<UsedCarSeries> selectSeriesInfo(Integer seriesId);

    ApiResult saveSeries(UsedCarSeries usedCarSeries);

    ApiResult<List<UsedCarSeries>> findListByBrandId(Integer brandId);

    ApiResult<UsedCarBrand> findBrandBySeriesId(Integer seriesId);

    List<UsedCar> queryUsedCarSeriesById(Integer seriesId);

    List<UsedCarSeries> queryUsedCarSeriesListTwo();
}
